class Cat:
    def __init__(self,newName,newAge):
        print("__init__初始化")
        self.name = newName
        self.age = newAge

    def __str__(self):
        return "%s的年龄是%d"%(self.name,self.age)
    def eat(self):
        print("eat....")

    def drink(self):
        print("drink....")

    def instrduce(self):
        print("%s的年龄是%d"%(self.name,self.age))


tom = Cat("Tom",50)
# tom.name = "Tom"
# tom.age = 40
# tom.instrduce()
print(tom)

lanmao = Cat("lanmao",55)
# lanmao.name = "lanmao"
# lanmao.age = 34
# lanmao.instrduce()

print(lanmao)

